﻿ @{  
   ViewBag.Title = "Index";
   Layout = "~/Views/Shared/Layout.cshtml"; 
 }  
<div class="row-fluid margin-bottom-20">

    <div id="gestion-categoría" class="span6" style="padding: 15px;">
        <form class="horizontal-form" action="#">

             <input id="number" type="text" value="" class="m-wrap span12"/>  

             <div class="category-action-buttons">
              <button id="submit" type="button" class="btn category-button-insert">Check Number</button>  <br /><br /> 
             </div>
             <p id="result"></p>  
             
            
            
          </form>
    </div>
</div>  
            
            
            <script type="text/javascript">  
               $('#submit').click(function () {  
                 $.post("Index",  
                     { number: $('#number').val() },  
                     function (data) {  
                       $('#result').html(data);  
                     }  
                 );  
               });  
             </script>
